# setup.py
from distutils.core import setup
import py2exe
import glob

opts = {
    "py2exe": {
        "includes": "cairo, pango, pangocairo, atk, gobject,gtksourceview2",
        "dll_excludes": [
        "iconv.dll","intl.dll","libatk-1.0-0.dll",
        "libgdk_pixbuf-2.0-0.dll","libgdk-win32-2.0-0.dll",
        "libglib-2.0-0.dll","libgmodule-2.0-0.dll",
        "libgobject-2.0-0.dll","libgthread-2.0-0.dll",
        "libgtk-win32-2.0-0.dll","libpango-1.0-0.dll",
        "libpangowin32-1.0-0.dll"],
        }
    }

opt_bpad = {
      'py2exe': {
          'packages':'encodings',
          'includes': 'cairo, pango, pangocairo, atk, gobject,gtksourceview2'
      }
}


setup(
    name = "PyPreview",
    description = "A fun environment for recreational computational geometry",
    version = "0.08.08",
    windows = [
        {"script": "pypreview.py",
        "icon_resources": [(1, "pypreview.ico")]
        }
    ],
    options=opt_bpad,
    data_files=[
        ("2d-samples", glob.glob("2d-samples/*.py")),
        ("tutorial", glob.glob("tutorial/*.py")),
        ("challenge", glob.glob("challenge/*.png")),
        (".", glob.glob("pypreview64.png")),
    ],
)

